<?php

namespace app\api\controller;

use app\admin\app\model\Material;
use support\Request;

class MaterialController
{
    public function getMaterial()
    {
        $material = Material::whereNull('path')->first();
        return json([
            'code' => 1,
            'msg' => 'ok',
            'data' => $material
        ]);
    }


    public function saveMaterial(){

    }
}
